/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package co.edu.sd.jxta.util;

import java.util.GregorianCalendar;
import java.util.SimpleTimeZone;

/**
 *
 * @author SD
 */
public class DateUtil {

    public static long getCurrentTimeUTC() {
       
        GregorianCalendar lGmtCalendar;
        long lUTCtime;

        lGmtCalendar = new GregorianCalendar(new SimpleTimeZone(0, "GMT+0"));

        lGmtCalendar.setTimeInMillis(System.currentTimeMillis());

        lUTCtime = lGmtCalendar.getTimeInMillis();
        return lUTCtime;
    }
}
